package org.yanex.project.api.parsers;

import java.util.List;

public abstract class AbstractParser {

	public static class ParserException extends Exception {
		private static final long serialVersionUID = -8057762213712059641L;
		
		private String message;

		ParserException(String message) {
			this.message = message;
		}

		@Override
		public String getMessage() {
			return message;
		}
	}
	
	public abstract List<ParsedItem> getItems(String text)
			throws ParserException;

}
